#!/bin/bash -e

function info() {
echo Usage: `basename $0` '[-l list] cmd ...'
exit 1
}

while getopts  ":p:f:l:" opt; do
	case  $opt  in
		p) out_prefix=$OPTARG;;
		f) suffix=$OPTARG;;
        l) list=$OPTARG;;
		*) info;;
	esac
done
shift $(($OPTIND - 1))

if [ $# -lt 1 ]; then info; fi

. $var

for i in `cat $list`; do
    eval $@ $i
done

